#!/bin/sh

########################################################################

# Begin hostapd

# Description : Start hostap daemon

# Author      : Bruce Dubbs - bdubbs at linuxfromscratch.org

# Version     : LFS 7.0

########################################################################



### BEGIN INIT INFO

# Provides:            logrotate

### END INIT INFO



. /lib/lsb/init-functions



#$LastChangedBy: dj $

#$Date: 2011-12-05 07:38:40 +0000 (Mon, 05 Dec 2011) $



case $1 in

   start)

        log_info_msg "Starting logrotate daemon..."
	/usr/sbin/logrotate /etc/logrotate.conf

      #evaluate_retval

      ;;



   stop)

      log_info_msg "Stopping sshguard daemon..."

      killproc /usr/sbin/logrotate

      #evaluate_retval

      ;;



   restart)

      $0 stop

      sleep 1

      $0 start

      ;;



   status)

      statusproc /usr/bin/sshguard

      ;;



   *)

      echo "Usage: $0 {start|stop|restart|status}"

      exit 1

      ;;

esac



# End /etc/init.d/logrotate

